import {NgModule, ErrorHandler} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {IonicApp, IonicModule, IonicErrorHandler} from 'ionic-angular';
import {MyApp} from './app.component';

import {AboutPage} from '../pages/about/about';
import {ContactPage} from '../pages/contact/contact';
import {HomePage} from '../pages/home/home';
import {TabsPage} from '../pages/tabs/tabs';
import {LoginPage} from '../pages/login/login';
import {PwdPage} from "../pages/pwd/pwd";
import {PersonPage} from "../pages/person/person";
import {StoragePage} from '../pages/storages/storage/storage';
import {NewCreatPage} from '../pages/storages/newcreat/newcreat';
import {PersonalDataPage} from "../pages/personalData/personalData";
import {PassCountPage} from "../pages/person/bypassCount/passCount";
import {ModifyDataPage} from "../pages/modifyData/modifyData";
import {ModifyPswPage} from "../pages/modifyPsw/modifyPsw";
import {CollectPage} from "../pages/storages/collect/collect";
import {ResultPage} from "../pages/storages/result/result";

import {StatusBar} from '@ionic-native/status-bar';
import {SplashScreen} from '@ionic-native/splash-screen';
import {IonicStorageModule} from '@ionic/storage';
import {Dialogs} from '@ionic-native/dialogs';
import {HttpModule} from "@angular/http";
import {ManagementPage} from "../pages/storages/management/management";
import {PopOverPage} from "../pages/storages/popoverPage/popoverPage";
import {KcmodelPage} from "../pages/storages/ckmodel/kcmodel";

import {services} from "../providers/service";
import {CityPickerModule} from  "ionic2-city-picker";
import {ActiveModelPage} from "../pages/activeModel/activeModel";
import {CjStatusPage} from "../pages/storages/cjStatus/cjStatus";


@NgModule({
    declarations: [
        MyApp,
        AboutPage,
        ContactPage,
        HomePage,
        TabsPage,
        LoginPage,
        PwdPage,
        PersonPage,
        StoragePage,
        NewCreatPage,
        PersonalDataPage,
        PassCountPage,
        ModifyDataPage,
        ModifyPswPage,
        CollectPage,
        ResultPage,
        ManagementPage,
        PopOverPage,
        KcmodelPage,
        ActiveModelPage,
        CjStatusPage
    ],
    imports: [
        BrowserModule,
        HttpModule,
        CityPickerModule,
        IonicModule.forRoot(MyApp, {
            tabsHideOnSubPages: 'true',//隐藏全部子页面的tab
            backButtonText: '',

        }),
        IonicStorageModule.forRoot()
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        MyApp,
        AboutPage,
        ContactPage,
        HomePage,
        TabsPage,
        LoginPage,
        PwdPage,
        PersonPage,
        StoragePage,
        NewCreatPage,
        PersonalDataPage,
        PassCountPage,
        ModifyDataPage,
        ModifyPswPage,
        CollectPage,
        ResultPage,
        ManagementPage,
        PopOverPage,
        KcmodelPage,
        ActiveModelPage,
        CjStatusPage
    ],
    providers: [
        StatusBar,
        SplashScreen,
        Dialogs,
        services,
        {provide: ErrorHandler, useClass: IonicErrorHandler}
    ]
})
export class AppModule {
}
